package com.shrimpcolo.johnnytam;

public class SchoolNew {
	
	//v0.3 为了封装， 将School类属性全部变为private
	private String schoolName;
	private int classNumber;
	private int labNumber;
	
	//使用构造方法，在构造时候直接赋值
	public SchoolNew() {	
	}
	
	public SchoolNew(String schoolName) {
		this.schoolName = schoolName;
	}
	
	public SchoolNew(String schoolName, int classNumber, int labNumber) {
		this.schoolName = schoolName;
		this.classNumber = classNumber;
		this.labNumber = labNumber;
	}
	
	public void showCenter(){
		System.out.println(schoolName + "培训中心\n" + "配备:" + classNumber + "教室"
				+ labNumber + "机房");
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public int getClassNumber() {
		return classNumber;
	}

	public void setClassNumber(int classNumber) {
		this.classNumber = classNumber;
	}

	public int getLabNumber() {
		return labNumber;
	}

	public void setLabNumber(int labNumber) {
		this.labNumber = labNumber;
	}
	
	

}
